
<!-- jQuery js -->
<script type="text/javascript" src="${ctx}/scripts/jquery/jquery-1.8.2.min.js"></script>

<!-- jQuery Double Select js -->
<script type="text/javascript" src="${ctx}/scripts/jquery-doubleselect/jquery.doubleSelect-1.3.1.min.js"></script>

<!-- jQuery-ui js -->
<script type="text/javascript" src="${ctx}/scripts/jqueryui/jquery-ui-1.9.1.min.js"></script>

<!-- jQuery-validate js -->
<script type="text/javascript" src="${ctx}/scripts/jqueryvalidate/jquery.validate.min.js"></script>

<!-- jQuery-file-upload js 
<script type="text/javascript" src="${ctx}/scripts/jquery-file-upload/jquery.iframe-transport.js"></script>
<script type="text/javascript" src="${ctx}/scripts/jquery-file-upload/jquery.fileupload.js"></script>
-->

<!-- jQuery-palceholder plugin for IE -->
<script src="${ctx}/scripts/placeholder_jquery.js" type="text/javascript"></script>

<!-- jQuery form  -->
<script type="text/javascript" src="${ctx}/scripts/jquery-form/jquery.form.js"></script>

<!-- jqGrid, 18n -->
<script type="text/javascript" src="${ctx}/scripts/jqgrid/i18n/grid.locale-en.js"></script>
<script type="text/javascript" src="${ctx}/scripts/jqgrid/jquery.jqGrid.min.js"></script>

<!-- jqGrid debug scripts -->
<!--<script type="text/javascript"-->
<!--	src="${ctx}/scripts/jqgrid/src/grid.loader.js"></script>-->
<!-- setting global options for jqGrid -->
<script type="text/javascript">

//default set for validator plugin
$.validator.setDefaults({
	errorClass: "ui-state-error-text",
	onkeyup: false,
	highlight: function(input) {$(input).addClass("ui-state-error");},
	unhighlight: function(input) {$(input).removeClass("ui-state-error");}
});

//set all jqgrid ajax request to POST
$.jgrid.ajaxOptions.type = 'post';
// Here we set a globally the altRows option
jQuery.extend(jQuery.jgrid.defaults, {
	datatype : "json",
	prmNames : {
		page : "jq.requestPage", rows : "jq.pageSize", sort : "jq.sortColumn",
		order : "jq.sortDirection", search : "jq._search", nd : "jq.nd", npage : null, oper : "jq.oper", id : "jq.id"}
	
});

</script>